<?php

namespace Index\Controller;

use Think\Controller;

class IndexController extends Controller {

    public function index() {
      
     //   redirect('/Admin');
       $this->display();
    }
    
      public function prices() {
      
       $this->display();
    }
    
      public function contact() {
      
       $this->display();
    }
    //访客信息记录
    public function send(){
       $data = I("post.");
       //print_r($data);
      
       
       $visitor = M("visitor");
       if($data = $visitor->create()){
           $data['time']=time();
           if($visitor->add($data)){
               $this->success("ok");
           }else{
               $this->error("error");  
           }  
       }else{
            $this->error("error1");
       }
       
       
       
   
    }
    
    
     

}
